home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / templates / show-status-file < prev    next >
Text File  |  2006-11-04  |  4KB  |  151 lines

  1. ##########################################################
  2. #
  3. # Show-Status-CGI Output template for Privoxy.
  4. # (Variant for the show-file mode)
  5. #
  6. # USING HTML TEMPLATES:
  7. # ---------------------
  8. #
  9. # Template files are written win plain HTML, with a few
  10. # additions:
  11. # - Lines that start with a '#' character like this one
  12. #   are ignored
  13. #
  14. # - Each item in the below list of exported symbols will
  15. #   be replaced by dynamically generated text, if they
  16. #   are enclosed in '@'-characters. E.g. The string @version@
  17. #   will be replaced by the version number of Privoxy.
  18. #
  19. # - One special application of this is to make whole blocks
  20. #   of the HTML template disappear if the condition <name>
  21. #   is not given. Simply enclose the block between the two
  22. #   strings @if-<name>start and if-<name>-end@. The strings
  23. #   should be placed in HTML comments (<!-- -->), so the
  24. #   html structure won't be messed when the magic happens.
  25. #   
  26. # USABLE SYMBOLS IN THIS TEMPLATE:
  27. # --------------------------------
  28. #
  29. #  my-ip-addr:
  30. #    The IP-address that the client used to reach this proxy
  31. #  my-hostname:
  32. #    The hostname associated with my-ip-addr
  33. #  admin-address:
  34. #    The email address of the pxoxy's administrator, as configured
  35. #    in the config file
  36. #  default-cgi:
  37. #    The URL for the "main menu" builtin CGI of this proxy
  38. #  menu:
  39. #    List of <li> elements linking to the other available CGIs
  40. #  version:
  41. #    The version number of the proxy software
  42. #  code-status:
  43. #    The development status of the proxy software: "alpha", "beta",
  44. #    or "stable".
  45. #  homepage:
  46. #    The URL of the SourceForge ijbswa project, who maintains this
  47. #    software.
  48. #
  49. #  file-description:
  50. #    A descriptive name for the file being shown
  51. #  contents:
  52. #    The contents of the file being shown
  53. #  filepath
  54. #    The complete filename of the file being shown
  55. #
  56. #  
  57. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  58. # ------------------------------------------------------------------
  59. #
  60. #  unstable:
  61. #    This is an alpha or beta release of the proxy software
  62. #  have-adminaddr-info:
  63. #    An e-mail address for the local Privoxy adminstrator has
  64. #    been specified and is available through the "admin-address"
  65. #    symbol
  66. #  have-proxy-info:
  67. #    A URL for online documentation about this proxy has been
  68. #    specified and is available through the "proxy-info-url"
  69. #    symbol
  70. #  have-help-info:
  71. #    If either have-proxy-info is true or have-adminaddr-info is
  72. #    true, have-help-info is true.  Used to conditionally include
  73. #    a grey box for any and all help info.
  74. #
  75. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  76. <html>
  77.  
  78. <head>
  79.   <title>Privoxy@@my-hostname@: Contents of @file-description@</title>
  80.   <meta http-equiv="Content-Style-Type" content="text/css">
  81.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  82.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  83.   <meta name="robots" content="noindex,nofollow">
  84.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  85. </head>
  86.  
  87. <body>
  88.  
  89.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  90.     <tr>
  91.       <td class="title">
  92.  
  93. #include mod-title
  94.  
  95.       </td>
  96.     </tr>
  97.  
  98. <!-- @if-unstable-start -->
  99. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  100.     <tr>
  101.       <td class="warning">
  102.  
  103. #include mod-unstable-warning
  104.  
  105.       </td>
  106.     </tr>
  107. <!-- if-unstable-end@ -->
  108.  
  109.     <tr>
  110.       <td class="box">
  111.         <h2>Contents of @file-description@ @filepath@</h2>
  112.         <pre>@contents@</pre>
  113.       </td>
  114.     </tr>
  115.  
  116.     <tr>
  117.       <td class="box">
  118.         <h2>More Privoxy:</h2>
  119.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  120.       </td>
  121.     </tr>
  122.  
  123.     <tr>
  124.       <td class="info">
  125.  
  126. #include mod-support-and-service
  127.  
  128.       </td>
  129.     </tr>
  130.  
  131. <!-- @if-have-help-info-start -->
  132.     <tr>
  133.       <td class="info">
  134.  
  135. #include mod-local-help
  136.  
  137.       </td>
  138.     </tr>
  139. <!-- if-have-help-info-end@ -->
  140.  
  141.      <tr>
  142.       <td>
  143.         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
  144.       </td>
  145.     </tr>       
  146.   </table>
  147.  
  148. </body>
  149. </html>
  150.